import http from '../request';
const apibase = '/api/MongoDBHistory';
import qs from 'qs';

//查询日志
var getHistoryList = function (data) {
  return new Promise ((resolve, reject) => {
    http
      .post (apibase + `/GetHistoryByPage`, data)
      .then (res => {
        resolve (res);
      })
      .catch (error => {
        reject (error);
      });
  });
};
//查询日志明细
var getHistoryDetailByID = function (data) {
  return new Promise ((resolve, reject) => {
    http
      .post (apibase + `/GetHistoryDetailByID`, data)
      .then (res => {
        resolve (res);
      })
      .catch (error => {
        reject (error);
      });
  });
};

export {getHistoryList, getHistoryDetailByID};
